export default function(props:any){
    const name=props.className;
    let className='w-svg';
    if(name){
        className+=' '+name;
    }
    let fn=props.onClick;
    let fnClick;
    if(fn){
        fnClick=(e:any)=>{
            fn(e);
        };
    }
    return (
        <span onClick={fnClick} className={className} style={{fontSize:props.fontSize,color:props.color}}>
            <svg viewBox="0 0 1024 1024" width="1em" height="1em" fill="currentColor">
                <path d="M993.760151 704.386146l-41.03394 12.784554c1.179682 8.863611 2.455338 17.504282 2.455338 26.654816 0 9.05456-1.434613 17.854188-2.805244 26.52585l41.383846 12.880529c9.692388 2.806244 17.854188 9.373474 22.572915 18.237084 4.686737 8.863611 5.642479 19.257809 2.422348 28.822232-6.663204 19.703689-28.5663 30.351819-49.066775 24.03952l-41.862717-12.976502a207.334117 207.334117 0 0 1-32.169329 43.265338l25.538116 33.731909a36.378195 36.378195 0 0 1-8.60768 52.159941 39.88525 39.88525 0 0 1-54.42533-8.225783l-25.665083-33.890865a217.951255 217.951255 0 0 1-52.733786 17.089393v41.128915c0 20.595449-17.472291 37.39792-38.929508 37.39792-21.552191 0-38.99249-16.706497-38.99249-37.39892v-41.128914a217.759307 217.759307 0 0 1-52.765778-17.088394l-25.602099 33.890865a40.172172 40.172172 0 0 1-54.455323 8.225783 36.155255 36.155255 0 0 1-8.576688-52.159941l25.793048-34.050823a201.084801 201.084801 0 0 1-33.285029-42.691493l-40.905975 12.785554c-20.596449 6.440264-42.499545-4.335831-49.099766-24.039521a36.920049 36.920049 0 0 1 24.964272-47.059316l41.064931-12.720571c-1.147691-8.83162-2.519321-17.600256-2.519321-26.686807 0-9.181525 1.499596-17.854188 2.839235-26.652816l-41.416837-12.817546c-20.564457-6.440264-31.659467-27.482593-24.963271-47.123298 6.598222-19.607715 28.502318-30.287836 49.098766-24.00753l41.829726 13.040485a211.000129 211.000129 0 0 1 32.170329-43.360313l-25.506126-33.636933a36.442178 36.442178 0 0 1 8.576689-52.191933 39.949232 39.949232 0 0 1 54.455322 8.289766l25.633091 33.890865a214.412209 214.412209 0 0 1 52.734787-17.120386v-41.128914c0-20.62844 17.408308-37.39892 38.99249-37.39892 21.489208 0 38.960499 16.642514 38.960499 37.39892v41.064932a216.675599 216.675599 0 0 1 52.702795 17.152377l25.665082-33.922857a40.109189 40.109189 0 0 1 54.424331-8.289766c17.344325 12.179717 21.265268 35.485436 8.640671 52.223924l-25.825039 34.018831c12.720571 12.91252 24.358435 26.97273 33.349011 42.595519l40.873984-12.656588c20.532466-6.313298 42.403571 4.398814 49.066775 24.070512 6.759178 19.608715-4.52678 40.651043-24.995263 47.059316zM740.928297 613.13774c-75.306702 0-136.426229 58.600205-136.426229 130.78275 0 72.246527 61.119526 130.719767 136.426229 130.719767 75.211728 0 136.363246-58.47324 136.363246-130.719767 0-72.182545-61.056543-130.78275-136.363246-130.78275z"></path>
                <path d="M441.708946 895.428654H99.640144a49.736594 49.736594 0 0 1-49.768586-49.769586V99.570163c0-27.451601 22.285993-49.769586 49.768586-49.769586h447.698331v223.849666a99.50618 99.50618 0 0 0 99.50618 99.50618h198.948377v36.441178a322.016207 322.016207 0 0 1 49.768586 32.011372V348.286126l-8.799628-8.767637 1.529588-8.799628L581.324315 0.095974H99.671136A99.50618 99.50618 0 0 0 0.164956 99.602154V845.722051a99.50618 99.50618 0 0 0 99.50618 99.50618h390.34079a322.876975 322.876975 0 0 1-48.301981-49.800577z"></path>
                <path d="M597.107061 91.12144l217.758307 232.265397H646.843655a49.736594 49.736594 0 0 1-49.769585-49.736594V91.12144h0.031991zM174.276027 422.893017H422.99399v-49.736594H174.277027v49.736594zM422.99399 223.880657H174.277027v49.769586H422.99399V223.879657zM174.277027 743.857507H422.99399v-49.737594H174.277027v49.736594z m339.838403-198.980368h-339.838403v49.736594h339.838403v-49.736594z"></path>
            </svg>
        </span>
    )
}